Apply Steven's fix for trackfilter names since I clearly can't get it right.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 24 Jul 2013 03:05:13 +0000 (03:05 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 24 Jul 2013 03:05:13 +0000 (03:05 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4474 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/trackfilter.cc

index b66cab2b980c298914e636de2d6fd85db6dad2aa..4731b42eb6106458f9306bdeed75240b0c89c045 100644 (file)
@@ -387,8 +387,8 @@ trackfilter_split_init_rte_name(route_head *track, const QDateTime dt)
   char buff[128], tbuff[128];
   struct tm tm;
 
-  time_t time = dt.toTime_t();
-  tm = *localtime(&time);
+  time_t time = dt.toUTC().toTime_t();
+  tm = *gmtime(&time);
 
   (opt_interval != 0) ?
   strftime(tbuff, sizeof(tbuff), "%Y%m%d%H%M%S", &tm) :